package controllers

import "github.com/astaxie/beego"

type ErrorController struct {
	beego.Controller
}

// @router /error [get]
func (this *ErrorController) GetError() {
	info := this.GetString("info")
	this.Data["msg"] = "发生未知错误"
	if info != "" {
		this.Data["msg"] = info
	}
	this.Ctx.SetCookie("name", "jack")
	this.TplName = "error.html"
}
